package com.uls.hj.service.impl;

import java.util.List;
import java.util.Map;

import com.uls.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.uls.hj.mapper.HjVenueSchedulesMapper;
import com.uls.hj.domain.HjVenueSchedules;
import com.uls.hj.service.IHjVenueSchedulesService;

/**
 * 场馆使用排班Service业务层处理
 * 
 * @author hj
 * @date 2024-11-24
 */
@Service
public class HjVenueSchedulesServiceImpl implements IHjVenueSchedulesService 
{
    @Autowired
    private HjVenueSchedulesMapper hjVenueSchedulesMapper;

    /**
     * 查询场馆使用排班
     * 
     * @param scheduleId 场馆使用排班主键
     * @return 场馆使用排班
     */
    @Override
    public HjVenueSchedules selectHjVenueSchedulesByScheduleId(Long scheduleId)
    {
        return hjVenueSchedulesMapper.selectHjVenueSchedulesByScheduleId(scheduleId);
    }

    /**
     * 查询场馆使用排班列表
     * 
     * @param hjVenueSchedules 场馆使用排班
     * @return 场馆使用排班
     */
    @Override
    public List<HjVenueSchedules> selectHjVenueSchedulesList(HjVenueSchedules hjVenueSchedules)
    {
        return hjVenueSchedulesMapper.selectHjVenueSchedulesList(hjVenueSchedules);
    }

    /**
     * 新增场馆使用排班
     * 
     * @param hjVenueSchedules 场馆使用排班
     * @return 结果
     */
    @Override
    public int insertHjVenueSchedules(HjVenueSchedules hjVenueSchedules)
    {
        hjVenueSchedules.setCreateTime(DateUtils.getNowDate());
        return hjVenueSchedulesMapper.insertHjVenueSchedules(hjVenueSchedules);
    }

    /**
     * 修改场馆使用排班
     * 
     * @param hjVenueSchedules 场馆使用排班
     * @return 结果
     */
    @Override
    public int updateHjVenueSchedules(HjVenueSchedules hjVenueSchedules)
    {
        return hjVenueSchedulesMapper.updateHjVenueSchedules(hjVenueSchedules);
    }

    /**
     * 批量删除场馆使用排班
     * 
     * @param scheduleIds 需要删除的场馆使用排班主键
     * @return 结果
     */
    @Override
    public int deleteHjVenueSchedulesByScheduleIds(Long[] scheduleIds)
    {
        return hjVenueSchedulesMapper.deleteHjVenueSchedulesByScheduleIds(scheduleIds);
    }

    /**
     * 批量假删
     * @param params
     * @return
     */
    @Override
    public int updateHjVenueSchedulesByScheduleIds(Map<String, Object> params) {
        return hjVenueSchedulesMapper.updateHjVenueSchedulesByScheduleIds(params);
    }

    /**
     * 删除场馆使用排班信息
     * 
     * @param scheduleId 场馆使用排班主键
     * @return 结果
     */
    @Override
    public int deleteHjVenueSchedulesByScheduleId(Long scheduleId)
    {
        return hjVenueSchedulesMapper.deleteHjVenueSchedulesByScheduleId(scheduleId);
    }
}
